#include <iostream>
#include <regex>
using namespace std;
int main() {
    string str = "/numbers/1213130"; // 要匹配的字符串
    regex e("/numbers/(\\d+)");
    smatch matches;
    bool ret = regex_match(str, matches, e);
    if(ret != true) {
        return -1;
    }
    for(auto& e : matches) {
        cout << e << endl;
    }
    return 0;
}